package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.OrdersDao;
import com.ischoolbar.programmer.entity.home.Collect;
import com.ischoolbar.programmer.entity.home.Orders;
import com.ischoolbar.programmer.service.home.OrdersService;

@Service
public class OrdersServiceImpl implements OrdersService{


	@Autowired
	private OrdersDao ordersDao;
	
	
	@Override
	public int add(Orders orders) {
		// TODO Auto-generated method stub
		return ordersDao.add(orders);
	}


	@Override
	public List<Orders> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return ordersDao.findList(queryMap);
	}


	@Override
	public int getTotal(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return ordersDao.getTotal(queryMap);
	}


	@Override
	public String findShoppingIdById(Long id) {
		// TODO Auto-generated method stub
		return ordersDao.findShoppingIdById(id);
	}


	@Override
	public int delete(Long id) {
		// TODO Auto-generated method stub
		return ordersDao.delete(id);
	}


	@Override
	public List<Orders> findAllOrders(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return ordersDao.findAllOrders(queryMap);
	}


	@Override
	public int getAllTotal() {
		// TODO Auto-generated method stub
		return ordersDao.getAllTotal();
	}


	@Override
	public int deleteByIds(String ids) {
		// TODO Auto-generated method stub
		return ordersDao.deleteByIds(ids);
	}


	@Override
	public int findAllOrdersByDay() {
		// TODO Auto-generated method stub
		return ordersDao.findAllOrdersByDay();
	}


	@Override
	public int findAllOrdersByMonth() {
		// TODO Auto-generated method stub
		return ordersDao.findAllOrdersByMonth();
	}


	@Override
	public int deleteByAccountId(Long accountId) {
		// TODO Auto-generated method stub
		return ordersDao.deleteByAccountId(accountId);
	}


	

}
